import request from '@/util/request'

// 查询安全保障列表
export function listSecurity(query) {
  return request({
    url: ' /api/security/security/list',
    method: 'get',
    params: query
  })
}

// 查询安全保障详细
export function getSecurity(id) {
  return request({
    url: ' /api/security/security/' + id,
    method: 'get'
  })
}

// 新增安全保障
export function addSecurity(data) {
  return request({
    url: ' /api/security/security',
    method: 'post',
    data: data
  })
}

// 修改安全保障
export function updateSecurity(data) {
  return request({
    url: ' /api/security/security',
    method: 'put',
    data: data
  })
}

// 删除安全保障
export function delSecurity(id) {
  return request({
    url: ' /api/security/security/' + id,
    method: 'delete'
  })
}
